package mil.af.amc.adpetracker.web.decorators;

import mil.af.amc.adpetracker.model.EquipmentItem;
import mil.af.amc.adpetracker.model.DrmoPackage;
import org.displaytag.decorator.TableDecorator;

import java.util.Date;

/**
 * Please Fill in this Javadoc
 *
 * @author TSgt Jason Ferguson
 */

public class DrmoPackageDecorator extends TableDecorator {

    @Override
    public String addRowId() {
        EquipmentItem item = (EquipmentItem) getCurrentRowObject();
        return item.getId() + "-row";
    }

    public String getDtid() {

        DrmoPackage pkg = (DrmoPackage) getCurrentRowObject();
        return pkg.getDtid();

    }

    public Date getPackageCreateDate() {

        DrmoPackage pkg = (DrmoPackage) getCurrentRowObject();
        return pkg.getPackageCreateDate();

    }

    public int getPackageSize() {

        DrmoPackage pkg = (DrmoPackage) getCurrentRowObject();
        return pkg.getPackageSize();
        
    }


}
